package cn.wellwan.mq.controller;

import cn.hutool.core.lang.Console;
import cn.wellwan.mq.config.RabbitMQConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * creator: maokai
 * on: 2018/2/5
 * description:
 */
@Component
public class Consumer {
    @RabbitListener (queues = RabbitMQConfig.QUEUE_NAME)
    public void consumeMessage(String message) {
        Console.log("consume message {}", message);
    }
}
